n = eval(input())
list = [1]
sum = 0
for i in range(1, n):
    list.append(2 * list[i - 1])
for i in range(n):
    sum += list[i]
print(n * 100000)
print(sum)
